package cj.web.constants;

public enum GameAreaEnum {
	//报名所在学校区域
	QK("硚口区","硚口区"),
	JA("江岸区","江岸区"),
	JH("江汉区","江汉区"),
	QS("青山区","青山区"),
	DHFJQ("东湖风景区","东湖风景区"),
	WC("武昌区","武昌区"),
	HS("洪山区","洪山区"),
	DHGX("东湖高新","东湖高新"),
	HY("汉阳区","汉阳区"),
	WHJK("武汉经开","武汉经开"),
	JXQ("江夏区","江夏区"),
	DXH("东西湖区","东西湖区"),
	XZ("新洲区","新洲区"),
	HP("黄陂区","黄陂区"),
	CD("蔡甸区","蔡甸区"),
	WHHGQ("武汉化工区","武汉化工区"),
	HNQ("汉南区","汉南区"),
	OTHER("其他","其他"),
	;
    // 成员变量
    private String name;
    private String value;

    // 构造方法
    private GameAreaEnum(String name, String value) {
        this.name = name;
        this.value = value;
    }

    // 普通方法
    public static String getName(String value) {
        for (GameAreaEnum c : GameAreaEnum.values()) {
            if (c.getValue().equals(value)) {
                return c.name;
            }
        }
        return null;
    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}
